/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package interfaces;

/**
 *
 * @author Jordyson
 */
public class TelaConsultaCliente extends javax.swing.JInternalFrame {

    /**
     * Creates new form JInternalFrameConsultaCliente
     */
    public TelaConsultaCliente() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jComboBoxConsultaCliente = new javax.swing.JComboBox();
        jbpesquisacliente = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        jtabelaconsulta = new javax.swing.JTable();
        jbsair = new javax.swing.JButton();

        setClosable(true);
        setIconifiable(true);
        setMaximizable(true);
        setResizable(true);
        setTitle("Consulta de Clientes");
        getContentPane().setLayout(null);

        jLabel1.setText("Consultar por :");
        getContentPane().add(jLabel1);
        jLabel1.setBounds(30, 20, 90, 40);

        jComboBoxConsultaCliente.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "CPF", "Numero da reserva", " " }));
        jComboBoxConsultaCliente.setName(""); // NOI18N
        getContentPane().add(jComboBoxConsultaCliente);
        jComboBoxConsultaCliente.setBounds(130, 30, 160, 30);

        jbpesquisacliente.setText("Pesquisar");
        getContentPane().add(jbpesquisacliente);
        jbpesquisacliente.setBounds(460, 30, 100, 40);

        jtabelaconsulta.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null}
            },
            new String [] {
                "Reserva", "ID_Cliente", "Nome", "Quarto", "Andar"
            }
        ));
        jScrollPane1.setViewportView(jtabelaconsulta);

        getContentPane().add(jScrollPane1);
        jScrollPane1.setBounds(60, 110, 770, 220);

        jbsair.setText("Sair");
        jbsair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbsairActionPerformed(evt);
            }
        });
        getContentPane().add(jbsair);
        jbsair.setBounds(610, 30, 90, 40);

        setBounds(0, 0, 866, 660);
    }// </editor-fold>//GEN-END:initComponents

    private void jbsairActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbsairActionPerformed
        // TODO add your handling code here:
        //System.exit(0);
        this.dispose();
        
    }//GEN-LAST:event_jbsairActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JComboBox jComboBoxConsultaCliente;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JButton jbpesquisacliente;
    private javax.swing.JButton jbsair;
    private javax.swing.JTable jtabelaconsulta;
    // End of variables declaration//GEN-END:variables
}
